From 48cc0bd192b300119bb86158c9f0daf0f0c49be1 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 8 Jun 2006 16:51:39 +0100 Subject: [PATCH] [XEN] Reduce default maximum allocation order from 2^20 pages to 2^11. On x86 this corresponds to a maximum aligned contiguous allocation of 8MB. This can be overridden by architectures if need be. Signed-off-by: Keir Fraser --- xen/include/xen/mm.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xen/include/xen/mm.h b/xen/include/xen/mm.h index 327758f2c2..e33fbc2e52 100644 --- a/xen/include/xen/mm.h +++ b/xen/include/xen/mm.h @@ -68,8 +68,11 @@ unsigned long avail_domheap_pages(void); #define ALLOC_DOM_DMA 1 -/* Up to 2^20 pages can be allocated at once. */ -#define MAX_ORDER 20 +#ifdef CONFIG_PAGEALLOC_MAX_ORDER +#define MAX_ORDER CONFIG_PAGEALLOC_MAX_ORDER +#else +#define MAX_ORDER 11 /* 2^11 contiguous pages */ +#endif /* Automatic page scrubbing for dead domains. */ extern struct list_head page_scrub_list; -- 2.30.2